﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Altairis.FluffyCloud.Data {
    public class TopicUserState {

        [Key]
        public Guid TopicUserStatusId { get; set; }

        [Required]
        public int TopicId { get; set; }
        public Topic Topic { get; set; }

        [Required]
        public string UserName { get; set; }
        public User User { get; set; }

        public DateTimeOffset LastVisitDate { get; set; }

        public bool IsBookmarked { get; set; }

        // Constructor

        public TopicUserState() {
            this.TopicUserStatusId = Guid.NewGuid();
        }

    }
}
